﻿using System;
using System.Windows.Forms;

namespace OpenCost
{
    public partial class comPortSelect : Form
    {
        public comPortSelect()
        {
            InitializeComponent();
        }
        public comPortSelect(string[] availablePorts)
        {
            portCombo.Items.AddRange(availablePorts);
            portCombo.SelectedIndex = 0;
        }

        public string selectedPort;


        private void btnSelect_Click(object sender, EventArgs e)
        {
            selectedPort = portCombo.SelectedItem.ToString();   
        }

    }
}
